﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iAgent
{
    public class UserSettings : DataModel.Core.IUserSettings
    {
        public UserSettings()
        {
            UserName = Properties.Settings.Default.UserName;
            UseBlanks = Properties.Settings.Default.UseBlanks;
            if (Properties.Settings.Default.CompanyID > 0)
                MainCompany = DevExpress.Xpo.XpoDefault.Session.FindObject<DataModel.Models.InsuranceCompany>(DevExpress.Data.Filtering.CriteriaOperator.Parse("Oid=" + Properties.Settings.Default.CompanyID)); 
        }
        public DataModel.Models.InsuranceCompany MainCompany { get; set; }
        public string UserName { get; set; }
        public bool UseBlanks { get; set; }

    }
}
